﻿#region << 文 件 说 明 >>
/*----------------------------------------------------------------
// 文件名称：ViewModelLocator
// 创 建 者：杨程
// 创建时间：2021/9/2 10:40:53
// 文件版本：V1.0.0
// ===============================================================
// 功能描述：
//		
//
//----------------------------------------------------------------*/
#endregion

using System.Reflection;
using Test.DataAccess;
using V.CodeGenerator.Test.ViewModel;
using V.CodeGenerator.Test.ViewModel.ConfigCenter;
using Vampirewal.Core.Components;
using Vampirewal.Core.Interface;
using Vampirewal.Core.IoC;
using Vampirewal.Core.SimpleMVVM;

namespace V.CodeGenerator.Test
{
    public class ViewModelLocator:VampirewalViewModelLocator
    {       

        public override void InitLocator()
        {
            //CustomIoC.Instance.Register<IDialogMessage, DialogMessageComponent>();
            VampirewalIoC.GetInstance().RegisterService<IDataContext, DataContext>();

            //VampirewalIoC.GetInstance().Register<LoginViewModel>();
            //VampirewalIoC.GetInstance().Register<MainViewModel>();
        }

        public LoginViewModel LoginViewModel => VampirewalIoC.GetInstance().GetInstance<LoginViewModel>();

        public MainViewModel MainViewModel => VampirewalIoC.GetInstance().GetInstance<MainViewModel>();

    }

    //public class VCodeGeneratorTestStartUp : VampirewalStartUp
    //{
    //    public override Assembly CurrentAssembly()
    //    {
    //        throw new System.NotImplementedException();
    //    }

    //    public override string FirstWindowName()
    //    {
    //        throw new System.NotImplementedException();
    //    }
    //}
}
